<?php
/**
 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

include_once (dirname(__FILE__).DS.'/ja_vars.php');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">

<head>
<jdoc:include type="head" />
<?php JHTML::_('behavior.mootools'); ?>

<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css" type="text/css" />
<!--<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" />-->
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/vita.css" type="text/css" />

<?php
$lang =& JFactory::getLanguage();
$locales = $lang->getLocale();
if(strstr($locales[0],'vi'))
{
?>
<link rel="stylesheet" type="text/css" href="<?php echo $tmpTools->templateurl(); ?>/css/lang_vn.css" media="screen" />
<?php
} 
?>
<link rel="stylesheet" type="text/css" href="<?php echo $tmpTools->templateurl(); ?>/css/print.css" media="print" />    
<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.script.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/dw_event.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/dw_scroll.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/dw_scrollbar.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/scroll_controls.js"></script>
<script type="text/javascript">

function init_dw_Scroll() {
    var wndo = new dw_scrollObj('tab01', 'tab01_content');
    wndo.setUpScrollbar("dragBar", "track", "v", 1, 1);
    wndo.setUpScrollControls('scrollbar');
}

// if code supported, link in the style sheet and call the init function onload
if ( dw_scrollObj.isSupported() ) {
    dw_Event.add( window, 'load', init_dw_Scroll);
}


</script>
<!--[if IE 7.0]>
<style type="text/css">
.clearfix {display: inline-block;}
</style>
<![endif]-->
<?php if ($tmpTools->isIE6()): ?>
<!--[if lte IE 6]>
<script type="text/javascript">
var siteurl = '<?php echo $tmpTools->baseurl();?>';

window.addEvent ('load', makeTransBG);
function makeTransBG() {
	fixIEPNG($E('.ja-headermask'), '', '', 1);
	fixIEPNG($E('h1.logo a'));
	fixIEPNG($$('img'));
	fixIEPNG ($$('#ja-mainnav ul.menu li ul'), '', 'scale', 0, 2);
}
</script>
<style type="text/css">
.ja-headermask, h1.logo a, #ja-cssmenu li ul { background-position: -1000px; }
#ja-cssmenu li ul li, #ja-cssmenu li a { background:transparent url(<?php echo $tmpTools->templateurl(); ?>/images/blank.png) no-repeat right;}
.clearfix {height: 1%;}
</style>
<![endif]-->
<?php endif; ?>
</head>
<body>
<?php
$class=""; 
if(!$tmpTools->isFrontPage())
{
 $class="class=\"details\"";
} 
?> 
<div id="wrapContainer">
    <div id="container" <?php echo $class;?> >
        <div id="header">
            <ul class="top">
                <li><h1><a href="#" title="Taylor Made"><img src="<?php echo $tmpTools->templateurl(); ?>/images/vita/logo.jpg" alt="taylor" height="85" width="207"/></a></h1></li>
                <li class="midd"><h2 class="titRed">Learning Community</h2></li>
                <li class="last">
                    <h3><?php echo JText::_('LOGIN');?></h3>
                    <?php if($this->countModules('user4')) : ?>
                    <div id="ja-search">
                        <jdoc:include type="modules" name="user4" />
                    </div>
                    <?php endif; ?>
                </li>
            </ul>
            <p class="lnkVita"><a href="#" title="<?php echo JText::_('ABOUT');?>"><?php echo JText::_('ABOUT');?></a></p>
            <div class="bot">            
                <ul class="nav">                
                    <li class="first"><img src="<?php echo $tmpTools->templateurl(); ?>/images/vita/dummy.gif" alt="" class="uiIcon initIcon-07"/></li>                    
                    
                        <jdoc:include type="modules" name="hornav" />
                                         
                </ul>
                <jdoc:include type="modules" name="user5" />
            </div>            
        </div><!--EOF header-->

        <!-- BEGIN: CONTENT -->

                <div id="wrapMain">
                <div class="main">

                <jdoc:include type="message" />

                <?php if(!$tmpTools->isFrontPage()) : ?>
                <!-- 
                <div id="ja-pathway">
                    <jdoc:include type="module" name="breadcrumbs" />
                </div>
                 -->
                <?php endif ; ?>
				<?php if(!$this->countModules('taylor_timescape')) : ?>
                <jdoc:include type="component" />
				<?php endif ; ?>
                <?php if($this->countModules('banner')) : ?>
                <div id="ja-banner">
                    <jdoc:include type="modules" name="banner" />
                </div>
                <?php endif; ?>                
                
                <?php if($this->countModules('taylor_timescape')) : ?>
                    <jdoc:include type="modules" name="taylor_timescape" style="xhtml"/>
                <?php endif; ?> 
                <?php if($this->countModules('taylor_vita')) : ?>
                    <jdoc:include type="modules" name="taylor_vita" style="xhtml"/>
                <?php endif; ?>
                <?php if($this->countModules('taylor_applications')) : ?>

                    <jdoc:include type="modules" name="taylor_applications" style="xhtml"/>
   
                <?php endif; ?>                
                </div>
                <?php if($this->countModules('taylor_community')) : ?>
       
       <div class="blockCommunity uiFrame">
            <jdoc:include type="modules" name="taylor_community" style="xhtml" />            
        </div>
        <!--EOF blockCommunity-->        
        <?php endif; ?>   
        </div>
        <!-- END: CONTENT -->         
    </div><!-- EOF container-->
	<!-- BEGIN: FOOTER -->
    <div id="footer">
            <hr/>
            <ul class="nav">
                <jdoc:include type="modules" name="user3" />
            </ul>
    </div><!--EOF footer-->    
	<!-- END: FOOTER -->    
</div><!--EOF wrapContainer    -->
<jdoc:include type="modules" name="debug" />
</body>
</html>